using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Diagnostics;

namespace VisualDB.Entities
{
    [DebuggerDisplay("Name={Name},Type={Type}")]
    public class ColumnEntity
    {
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private string _id;
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private string _name;
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private string _type;
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private bool _allowNulls;
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private bool _primaryKey;

        public string Id
        {
            get
            {
                return _id;
            }

            set
            {
                _id = value;
            }
        }

        public string Name
        {
            get
            {
                return _name;
            }

            set
            {
                _name = value;
            }
        }

        public string Type
        {
            get
            {
                return _type;
            }

            set
            {
                _type = value;
            }
        }

        public bool AllowNulls
        {
            get
            {
                return _allowNulls;
            }

            set
            {
                _allowNulls = value;
            }
        }

        public bool PrimaryKey
        {
            get
            {
                return _primaryKey;
            }

            set
            {
                _primaryKey = value;
            }
        }
    }
}
